#pragma once

#include "..\\ConfigManage\\ConfigManage.h"

class CReadConfig
{
public:
	explicit CReadConfig(ITaskEvent* pTaskEvent);
	virtual ~CReadConfig(void);
	BOOL Create(LPCTSTR lpConfigPath);
	UINT GetNodeCount();
	BOOL Run(TASKTYPE TaskType);
	void Stop();
	BOOL GetNodeInfo(int nIndex,CMaterialInfo& info);
	UINT GetCurrentTaskID();
	void PostCount(LPCTSTR pstrUrl);
private:
	CConfigManage* m_pConfigManage;
	UINT m_nNodeCount;
	UINT m_nCurrentRunTaskID;
	ITaskEvent* m_pTaskEvent;
};
